},
_animationDone() {
+ this._clonesAnimating.forEach(clone => {
+ clone.source.reactive = true;
+ clone.source.opacity = 255;
+ clone.destroy();
+ });
this._clonesAnimating = [];
this.emit('animation-done');
},
onComplete: () => {
if (isLastItem)
this._animationDone();
-
- actor.opacity = 255;
- actor.reactive = true;
- actorClone.destroy();
}};
fadeParams = { time: ANIMATION_FADE_IN_TIME_FOR_ITEM,
transition: 'easeInOutQuad',
scale_x: scaleX,
scale_y: scaleY,
onComplete: () => {
- if (isLastItem) {
+ if (isLastItem)
this._animationDone();
- this._restoreItemsOpacity();
- }
- actor.reactive = true;
- actorClone.destroy();
}};
fadeParams = { time: ANIMATION_FADE_IN_TIME_FOR_ITEM,
transition: 'easeInOutQuad',
}
},
- _restoreItemsOpacity() {
- for (let index = 0; index < this._items.length; index++) {
- this._items[index].actor.opacity = 255;
- }
- },
-
_getAllocatedChildSizeAndSpacing(child) {
let [,, natWidth, natHeight] = child.get_preferred_size();
let width = Math.min(this._getHItemSize(), natWidth);